﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Revis.VClinicNet.App.Internal;
using Revis.VClinicNet.UI.Internal.Mvc.Infrastructure;

namespace Revis.VClinicNet.UI.Internal.Mvc.Controllers
{
    public class DataController : Controller
    {
        private IDataService _dataService = null;

        public DataController(IDataService ids)
        {
            _dataService = ids;
        }

        public ActionResult Reset()
        {
            _dataService.Reset();
            return View("Info", (object)"Baza danych zresetowana");
        }

        public ActionResult FillUp()
        {
            _dataService.FillUp();
            return View("Info", (object)"Baza danych wypełniona od nowa");
        }
    }
}
